<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html>
<head>
    <%@include file="common/head.jspf" %>
    <title>订单确认</title>
</head>
<body>
<nav class="navbar text-nav" role="navigation">
    <a class="pull-left btn-back" href="/shop/"><i class="icon-chevron-left"></i></a>
    <div class="center-block nav-title">订 单 确 认</div>
</nav>
<div class="container-fluid">
    <c:choose>
        <c:when test="${empty order}">
            <div class="row">
                <div class="col-xs-offset-1 col-xs-10">未找到该订单</div>
            </div>
        </c:when>
        <c:otherwise>
        <div class="row">
            <div class="col-xs-offset-1 col-xs-10">
                <p>&nbsp;</p>
                <h3><c:out value="${order.orderitemid}"/></h3>
                <p>服务详情：<c:out value="${order.paservice.tag1}"/></p>
                <p>积分：<c:out value="${order.credit}"/></p>
                <p>下单时间：<fmt:formatDate value="${order.ordertime}" pattern="yyyy-MM-dd hh:mm"/></p>
                <a class="btn btn-pa-large btn-block" href="./shop/confirmOrder?id=<c:out value="${order.id}"/>">确认</a>
            </div>
        </div>
        </c:otherwise>
    </c:choose>
</div>
</body>
</html>